<?php /*
	*/ ?>
<?php include("inc/head.inc.php") ?>
<body>
<table width="824" border="0" cellpadding="0" cellspacing="0"  align="center">
  
  <tr>
    <td class="headerclass"><?php include(INC."top.inc.php") ?></td>
  </tr>
  <tr>
    <td valign="top" class="maincontainer"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr><td valign="top"class="leftmenuback" width="235px;"><?php include(INC."left.inc.php") ?></td>
        <td valign="top" >
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="5">
      <tr><td height="23" colspan="2" bgcolor="#000000" class="style1">&nbsp; Brands</td>
      </tr>
	  <?php 
      $sql="select * from tblmanufactures";
	   $resmanu=$n02586916_db->select($sql);
	   if(count($resmanu)>0)
	   {
	   	for($m=0;$m<count($resmanu);$m++)
		{
		$manfid=$resmanu[$m]['intmanufactureid'];
			if (file_exists("images/manuf/".$resmanu[$m]['varimagepath'])) {
				$image = "images/manuf/".$resmanu[$m]['varimagepath'];
			} else {
				$image = "images/manuf/nologo.jpg";
			}
		?>
      <tr>
        <td width="50%"><table width="276" height="140" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" style="border:1px solid #CCCCCC;">
            <tr>
              <td height="22" colspan="2" style="background-image:url(images/header1.jpg); background-repeat:no-repeat; width:275px; height:23px;  padding-left:10px;" class="fntstyle"><?php echo $resmanu[$m]['varname'];?>
                </td>
            </tr>
            <tr>
              <td width="29%" rowspan="3" align="center">
                <a href="category.php?manufid=<?php echo $manfid;?>"><img src="<?php echo $image; ?>"  title="<?php echo stripslashes($resmanu[$m]['varname']); ?>" border="0" /></a></td>
              <td width="71%" height="70" align="left" class="font">
                  <?php
				  $desc=$resmanu[$m]['txtdesc'];
				  if(strlen($desc)>100) {
				  	$temp=substr($desc,0,100);
					echo stripslashes($temp)."...";
				  } else {
				  	echo stripslashes($desc);
				  }
				  ?></td>
            </tr>
            <tr>
              <td align="center" class="fontsmall"><a href="category.php?manufid=<?php echo $manfid;?>" class="aa">view</a></td>
            </tr>
            <tr>
              <td align="center" valign="top" class="fontsmall"></td>
            </tr>
        </table></td>
        <?php 
			$m++;
			if(isset($resmanu[$m]['intmanufactureid']))
			{
			$id=$resmanu[$m]['intmanufactureid'];
			if (file_exists("images/manuf/".$resmanu[$m]['varimagepath'])) {
				$image = "images/manuf/".$resmanu[$m]['varimagepath'];
			} else {
				$image = "images/manuf/nologo.jpg";
			}
		?>
        <td width="50%"><table width="276" height="140" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" style="border:1px solid #CCCCCC;">
            <tr>
              <td height="22" colspan="2" style="background-image:url(images/header1.jpg); background-repeat:no-repeat; width:275px; height:23px;  padding-left:10px;" class="fntstyle"><?php echo $resmanu[$m]['varname'];?></td>
            </tr>
            <tr>
              <td width="29%" rowspan="3" align="center">
                <a href="category.php?manufid=<?php echo $id;?>"><img src="<?php echo $image; ?>"  title="<?php echo stripslashes($resmanu[$m]['varname']); ?>" border="0" /></a></td>
              <td width="71%" height="70" align="left" class="font"><?php
				  $desc=$resmanu[$m]['txtdesc'];
				  if(strlen($desc)>100) {
				  	$temp=substr($desc,0,100);
					echo stripslashes($temp)."...";
				  } else {
				  	echo stripslashes($desc);
				  }
				  ?></td>
            </tr>
            <tr>
              <td align="center" class="fontsmall"><a href="category.php?manufid=<?php echo $id;?>" class="aa">view</a></td>
            </tr>
            <tr>
              <td align="center" valign="top" class="fontsmall"></td>
            </tr>
        </table></td> <?php }?>
      </tr>
      <?php 
			}}
		?>
    </table>		</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td><?php include "inc/bottom.inc.php"; ?></td>
  </tr>
</table>
</body>
</html>
